#ifndef FORM_ADVANCEDSTATISTICS_H
#define FORM_ADVANCEDSTATISTICS_H

#include <QWidget>
#include <QChart>
#include <QChartView>
#include <QLineSeries>
#include <QBarSet>
#include <QBarSeries>
#include <QBarCategoryAxis>
#include "../dbOperate/dbPrescription.h"

namespace Ui {
class Form_advancedStatistics;
}

using namespace QtCharts;

class Form_advancedStatistics : public QWidget
{
	Q_OBJECT
private:
	dbPrescription dp;
	QString group;
	bool detial;
	QString titleName;

	QChartView *chartView;

public:
	explicit Form_advancedStatistics(QWidget *parent = 0);
	Form_advancedStatistics(QWidget *parent, QString group, bool detial);
	~Form_advancedStatistics();

	void showLineChart();
	void showBarChart();

private:
	Ui::Form_advancedStatistics *ui;
};

#endif // FORM_ADVANCEDSTATISTICS_H
